Remove this.actor = actor, since the class is now an actor itself.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/487
}
_computeBoxPointerOffset() {
- if (!this._boxPointer || !this._boxPointer.actor.get_stage())
+ if (!this._boxPointer || !this._boxPointer.get_stage())
return 0;
let side = this._boxPointer.arrowSide;
x_expand: true,
x_align: St.Align.START });
- this._boxPointer.actor.style_class = 'app-folder-popup';
- this.actor.add_actor(this._boxPointer.actor);
+ this._boxPointer.style_class = 'app-folder-popup';
+ this.actor.add_actor(this._boxPointer);
this._boxPointer.bin.set_child(this._view.actor);
this.closeButton = Util.makeCloseButton(this._boxPointer);
this.closeButton.connect('clicked', this.popdown.bind(this));
this.actor.add_actor(this.closeButton);
- this._boxPointer.actor.bind_property('opacity', this.closeButton, 'opacity',
- GObject.BindingFlags.SYNC_CREATE);
+ this._boxPointer.bind_property('opacity', this.closeButton, 'opacity',
+ GObject.BindingFlags.SYNC_CREATE);
global.focus_manager.add_group(this.actor);
_init(arrowSide, binProperties) {
super._init();
- this.actor = this;
-
this.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS);
this._arrowSide = arrowSide;
_setDummyCursorGeometry(x, y, w, h) {
Main.layoutManager.setDummyCursorGeometry(x, y, w, h);
- if (this._boxPointer.actor.visible)
+ if (this._boxPointer.visible)
this._boxPointer.setPosition(Main.layoutManager.dummyCursor, 0);
}
if (isVisible) {
this._boxPointer.setPosition(Main.layoutManager.dummyCursor, 0);
this._boxPointer.open(BoxPointer.PopupAnimation.NONE);
- this._boxPointer.actor.raise_top();
+ this._boxPointer.raise_top();
} else {
this._boxPointer.close(BoxPointer.PopupAnimation.NONE);
}
y_fill: true,
x_align: St.Align.START });
this._boxPointer.hide();
- Main.layoutManager.addChrome(this._boxPointer.actor);
+ Main.layoutManager.addChrome(this._boxPointer);
this._boxPointer.setPosition(this.keyButton, 0.5);
// Adds style to existing keyboard style to avoid repetition
- this._boxPointer.actor.add_style_class_name('keyboard-subkeys');
+ this._boxPointer.add_style_class_name('keyboard-subkeys');
this._getExtendedKeys();
this.keyButton._extended_keys = this._extended_keyboard;
}
if (this._activeMenuItem)
this._activeMenuItem.setActive(false);
- if (this._boxPointer.actor.visible) {
+ if (this._boxPointer.visible) {
this._boxPointer.close(animate, () => {
this.emit('menu-closed');
});